package com.leyou.item.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 商品分类实体类
 */
@TableName("tb_category") //指定该实体类对于的数据库表
@Data
public class Category {

    @TableId(type = IdType.AUTO) //主键ID自增
    private Long id;
    private String name;
    private Long parentId;
    private Boolean isParent;
    private Integer sort;
    private Date createTime;
    private Date updateTime;

}